﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraTravel : MonoBehaviour
{
	// Start is called before the first frame update
	public GameObject source;
	public GameObject destination;
	public float movingSpeed = 0.03f;
	void Start()
	{
	}

	// Update is called once per frame
	void Update()
	{
		source.transform.position = Vector3.Slerp(source.transform.position, destination.transform.position, movingSpeed*Time.deltaTime);
		source.transform.rotation = Quaternion.Slerp(source.transform.rotation, destination.transform.rotation, movingSpeed*Time.deltaTime);
	}


}
